<?php
require_once('config.php');
class Model{
	public $config;
	public $conn;
	public function  __construct(){
		$this->config = new Config();
	}
	public function connDatabase(){
		$connectionInfo = array( "Database"=>$this->config->database);
		$this->conn = sqlsrv_connect( $this->config->server_name, $connectionInfo);

		if( !$this->conn ) {
		     echo "Connection could not be established.<br />";
		     die( print_r( sqlsrv_errors(), true));
		}
	}
}